package com.chentf.behavioral.responsibilitychain.code.demo03;

/**
 * 部门经理类（具体的处理者）
 * @author chentf
 * @date 2025-8-13
 */
public class Manager extends Handler {

    public Manager() {
        // 部门经理能处理1-3天的请假
        super(Handler.NUM_ONE, Handler.NUM_THREE);
    }

    @Override
    protected void handleLeave(LeaveRequest leave) {
        System.out.println(leave.getName() + "请假" + leave.getNum() + "天，" + leave.getContent() + "。");
        System.out.println("部门经理审批：同意");
    }
}
